
package com.lzxr.test.utils.enums;

public enum UserEnum {
    NOT_FOUND(5001, "用户不存在"),
    PASSWORD_ERROR(5002, "密码错误"),
    USER_EXIST(5003, "用户已存在"),
    USERNAME_EMPTY(5004, "用户名不能为空"),
    PASSWORD_EMPTY(5005, "密码不能为空");

    private final Integer code;
    private final String msg;

    private UserEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }
}
